package top.xuziyi.common.pojo;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

//不复权
@Entity
@Table(name = "stock_day_normal")
@IdClass(CodeDate.class)
public class StockDayNormal implements Serializable {

    @Id
    private String symbol;    //股票代码
    @Id
    private Date date;      //时间

    private Integer open;   //开盘价
    private Integer close;  //收盘价
    private Integer high;   //最高价
    private Integer low;    //最低价
    private Long volume;    //成交量
    private String status;  //状态,待用
    private Integer turnoverrate;//换手率,百分比,100表示100%

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getOpen() {
        return open;
    }

    public void setOpen(Integer open) {
        this.open = open;
    }

    public Integer getClose() {
        return close;
    }

    public void setClose(Integer close) {
        this.close = close;
    }

    public Integer getHigh() {
        return high;
    }

    public void setHigh(Integer high) {
        this.high = high;
    }

    public Integer getLow() {
        return low;
    }

    public void setLow(Integer low) {
        this.low = low;
    }

    public Long getVolume() {
        return volume;
    }

    public void setVolume(Long volume) {
        this.volume = volume;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getTurnoverrate() {
        return turnoverrate;
    }

    public void setTurnoverrate(Integer turnoverrate) {
        this.turnoverrate = turnoverrate;
    }
}
